<%-- 
    Document   : adminaddproduct
    Created on : Feb 28, 2012, 3:40:51 PM
    Author     : Alex
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <style type="text/css">
body {
	background-color: #000;
	background-image: url(bg.jpg);
	background-repeat: repeat-x;
}
body,td,th {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 7pt;
	color: #FFF;
}

h1 { font-family:Verdana, Geneva, sans-serif; font-size:24; text-align:center;}
h2 { font-family:Verdana, Geneva, sans-serif; font-size:11px; color:white;}
h3 { font-family:Verdana, Geneva, sans-serif; font-size:30; color:white; text-align:center;}

#menu{
    font: Verdana, Geneva, sans-serif;
    font-size: 10pt;
    color: white;
    position: absolute;
    top: 200px;
    left: 150px;
    text-align: left;
    font-style: bold;
}

#addproduct{
    font: Verdana, Geneva, sans-serif;
    font-size: 10pt;
    color: white;
    position: absolute;
    top: 180px;
    left: 400px;
    text-align: left;
    font-style: bold;
}

#addproduct2{
    font: Verdana, Geneva, sans-serif;
    font-size: 10pt;
    color: white;
    position: absolute;
    top: 180px;
    left: 600px;
    text-align: left;
    font-style: bold;
}

   </style>
   <script language = "Javascript" type="text/javascript">

function OnBlurInput(blur){

			if(blur.value == "")
			{
		    blur.value = "";
			}

}

function OnBlurInputPass(blur){

			if(blur.value == "")
			{
		    blur.value = "";
			}

			if(blur.value == "Password" || blur.value == "Retype Password" )
			{
			blur.type = "text";
			blur.value = blur.defaultValue;
			}


}

function OnClickInput(click){

			if(click.value == click.defaultValue )
			{
				click.value = "";
			}


}

function OnClickInputPass(click){

			if(click.value == click.defaultValue )
			{
				click.value = "";
			}
			if(click.type == "text")
			{
			click.type = "password";

			}

}
</script>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>FooBar Bookstore</title>
    </head>
   <%--  <%
        if(session.getAttribute("admin") == null){
            response.sendRedirect("index.jsp");
        }
        else{
        %>    --%> 
    <body>
        <h1>Administrator Add Product</h1>
        
        <div id="menu">
            <h2> Administrator Menu </h2> <% session.getAttribute("firstname");%> <%session.getAttribute("lastname");%>
            </br>
          <strong><a href="adminaddproduct.jsp"><h2>Add Manager</h2></a><strong>
          <strong><a href="adminaddmanager.jsp"><h2>Add Product</h2></a><strong>
          <strong><a href="LogoutServlet"><h2>LOGOUT</h2></a></strong>
         </div>
        
         <div id="addproduct">
            <form action="AddProductServlet12" method="post">
                <h2> Product Title:</h2>
                 <input id="textbox" type="text" name="title" value="Title" size="20"  onblur="OnBlurInput(this)" onclick="OnClickInput(this)"/></br></br>
                 
                 <h2> Product Sypnosis:</h2>
                 <input id="textbox" type="text" name="sypnosis" value="Sypnosis" size="20"  onblur="OnBlurInput(this)" onclick="OnClickInput(this)"/>
            
        </div>
        
        <div id="addproduct2">
            
                 <h2>Product Price:</h2>
                 <input id="textbox" type="text" name="price" value="Price" size="20"  onblur="OnBlurInput(this)" onclick="OnClickInput(this)"/></br></br>
                 <h2>Product Type:</h2>
                 <input id="textbox" type="text" name="type" value="Type" size="20"  onblur="OnBlurInput(this)" onclick="OnClickInput(this)"/></br></br>
                 <input type="hidden" name="mangid" value="1">
                 <input  type="submit" name="add" value="Add Product"/>
        </div>
</form>
        
      <%--    <%
             }
         %>--%>
    </body>
</html>
